<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="x-ua-compatible" content="ie=edge">
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" >
        <title>驾校地址</title>
        <link rel="stylesheet" href="cash-in.css">
        <link rel="stylesheet" href="../public_css/public_header.css">
        <style type="text/css">
            body, html{width: 100%;height: 100%;margin:0;font-family:"微软雅黑";}
            #allmap{
                height:calc( 100% - 70PX);
                width:100%;
            }

        </style>
    </head>
    <body>


        <header class=" public_header">
            <div class="public_header_return">
                <img src="../public_img/return.png" alt="" class="public_header_return" onclick="history.back(-1)">
                <p>驾校地址</p>
            </div>
        </header>

        <div id="allmap"></div>

        <script type="text/javascript" src="../public/jquery.min.js"></script>
        <script type="text/javascript" src="../public/layer.js"></script>
        <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=HZE4scXysMPZY1HMDTkI4cYSjRo13zZG"></script>

        <script type="text/javascript">
            $(function () {
                gps_j=localStorage.gps_jj;
                gps_w=localStorage.gps_ww;
                // 百度地图API功能
                var map = new BMap.Map("allmap");
                var point = new BMap.Point(gps_j, gps_w);
                map.centerAndZoom(point, 14);
                var marker = new BMap.Marker(new BMap.Point(gps_j, gps_w)); // 创建点
                map.addOverlay(marker);


            });
        </script>

        <script>
            document.addEventListener("plusready", function() {
                // 注册返回按键事件
                plus.key.addEventListener('backbutton', function() {
                    window.history.back();
                }, false);
                //此处false代表不退出页面，如果为true回退到上一个一面
            });
        </script>
    </body>
</html>
